$("#adtvmout").click(function () {
    window.location.href = '/report';
});
$("#adtvmadd").click(function () {
    var data = $("#adtvminfo").serialize();
    var id = $("input[name='id']").val();
        var reason = $.trim($(".reason").val());
        if(reason==''){
            dshow("处理原因不能为空");
            return false;
        }
    $.ajax({
        url: '/report/examine',
        type: 'POST',
        data: data,
        dataType: 'JSON',
        cache: false,
        success: function (json) {
            if (json.code == 2000) {
                if (id != '') {
                    history.back(-1);
                } else {
                    window.location.href = '/report/index'
                }
            } else {
                dshow(json.message);
            }
        }
    });
});